﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HR_VCATONChange.aspx.cs" Inherits="ArtLand.OA.Project.HR.HR_VCATONChange" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="../jqueryui/css/ui-lightness/jquery-ui-1.9.2.custom.min.css" />
    <style>
        .ui-autocomplete-loading {
            background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
        }

        .mytoolbar td {
            vertical-align: top;
        }

        .mytoolbar .x-form-field-wrap {
            /* Only fileupload in toolbar */
            height: 23px;
        }

        .mytoolbar .x-form-field {
            /* fix for IE */
            float: left;
        }
    </style>
    <script src="../js/jquery-1.4.1.min.js"></script>
    <script src="../js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" AutoSizePanelID="sim1" />
        <ext:SimpleForm ID="sim1" runat="server" BodyPadding="5px" ShowBorder="false" ShowHeader="false" LabelWidth="70px" LabelSeparator=":">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ValidateForms="sim1" ID="btnSave" Text="申请" Icon="Accept" OnClick="btnSave_Click"></ext:Button>
                        <ext:Button runat="server" ID="Button1" Hidden="true" Text="批准" ConfirmText="您确定要审批通过吗？" Icon="Accept" OnClick="Button1_Click"></ext:Button>
                        <ext:ToolbarSeparator></ext:ToolbarSeparator>
                        <ext:Button runat="server" ID="Button2" Text="不批准" Hidden="true" Icon="Decline" ConfirmText="您确定不批准该条申请吗？" OnClick="Button2_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Label runat="server" ID="l1" Text="未设置年假信息" ShowLabel="false" EncodeText="false" ShowEmptyLabel="true"></ext:Label>
                <ext:TriggerBox  Required="true" ShowRedStar="true" OnTextChanged="txt_EmpName_TextChanged" AutoPostBack="true" ID="txt_EmpName" Label="申请人" Width="140px" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择申请人" runat="server">
                </ext:TriggerBox>
                <ext:HiddenField runat="server" ID="hid_EmpUserNo"></ext:HiddenField>
                <ext:DropDownList runat="server" ID="Drp_VATYPE" Label="请假类型">
                </ext:DropDownList>
                <ext:Panel ID="Panel3" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                    Layout="Column" runat="server">
                    <Items>
                        <ext:Label ID="Label2" Width="75px" runat="server" Text="开始时间："></ext:Label>
                        <ext:TextBox runat="server" Label="开始时间" ID="txt_STDATE" Width="160px" Required="true" ShowRedStar="true"></ext:TextBox>
                        <ext:Label ID="Label4" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;"></ext:Label>
                        <ext:Label ID="Label3" runat="server" Text="结束时间："></ext:Label>
                        <ext:TextBox runat="server" Label="结束时间" ID="txt_EDDATE" Width="157px" Required="true" ShowRedStar="true"></ext:TextBox>
                    </Items>
                </ext:Panel>
                <ext:NumberBox runat="server" ID="txt_REQQTY" Label="请假天数" Required="true" ShowRedStar="true"></ext:NumberBox>
                <ext:TriggerBox  Required="true" ShowRedStar="true" ID="txt_AuditName" Label="审批人" Width="140px" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择审批人" runat="server">
                </ext:TriggerBox>
                <ext:HiddenField runat="server" ID="hid_AuditUserNo"></ext:HiddenField>
                <ext:TextArea runat="server" ID="txt_REASON" Label="请假原因" Height="90px" Required="true" ShowRedStar="true"></ext:TextArea>
                <ext:CheckBox runat="server" ID="Chk_Kou" Text="扣年假"></ext:CheckBox>
            </Items>
        </ext:SimpleForm>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="650px" Height="400px" OnClose="Window1_Close">
        </ext:Window>
        <ext:HiddenField runat="server" ID="hid_LEFQTY"></ext:HiddenField>
        <ext:HiddenField runat="server" ID="hid_isYear"></ext:HiddenField>
    </form>
    <script src="../js/ShowD.js"></script>
    <script src="../jqueryui/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../jqueryui/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var STDATE = "<%=txt_STDATE.ClientID%>";
        var EDDATE = "<%=txt_EDDATE.ClientID%>";
        function onReady() {
           

           // autoComp(EMPLID);
            ShowD(STDATE);
            ShowD(EDDATE);

        }

    </script>
    <script src="../js/WebCommon.js"></script>
</body>
</html>
